package org.example.service;

import org.example.model.book;
import org.example.model.borrow;

public interface BorrowService {
    boolean borrowBook(book book, String user_id);

    boolean returnBook(String borrow_id);

    borrow queryById(String borrow_id);

    borrow[] queryAll();

    borrow[] queryByBook(String book_id);

    borrow[] queryByUser(String user_id);

    borrow[] queryByBookAndUser(String book_id, String user_id);
}
